<template>
  <div class="bzwdxz">
    <el-table :data="list" height="850" border style="width: 100%">
      <el-table-column prop="fileName" label="名称"> </el-table-column>
      <el-table-column label="操作" width="90">
        <template slot-scope="scope">
          <el-button size="small" @click="goOPen(scope.row)">打开</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    getList() {
      this.$get(
        baseUrl.bzIp + "/T1/api/v1/HelpCenter/Home/GetListByCatalog"
      ).then((res) => {
        this.list = res.data;
      });
    },
    goOPen(val) {
      window.open(baseUrl.bzIp + val.urlPath);
    },
  },
};
</script>

<style scoped lang='scss'>
.bzwdxz {
  padding: 10px;
  height: 100vh;
  overflow: auto;
}
</style>